QuickOPC User's Guide and Reference
File License Store
Application Deployment > Licensing Elements > File License Store
In This Topic

With the File License Store, you deploy your license key in a file that resides in the file system.

This functionality is not available under (or the text does not apply to) COM development platform.

In order to register the file containing the license key: At the beginning of your code, before you call any QuickOPC operations, obtain the static Instance Field from the LicensingManagement Class, and call the RegisterFile Method or RegisterFileWithExistenceCheck Method with appropriate arguments. The first two arguments should always be "QuickOPC" and "Multipurpose". The third argument is the full (absolute) path and name to the license key file.

It is up to your code to determine the location (directory) and construct the path. In many cases, method like  Assembly.GetExecutingAssembly Method can help you with that.

Your build and deployment procedures then need to make sure that the license key file is placed at the chosen location when your program runs.

The available registration methods differ as follows:

The license registration call must be made before any QuickOPC operation is performed, or before you attempt to retrieve the license info.

Note that the actual validity of the license is not checked at the time when the location is registered.

See Also